package com.beyondsoft.dtc.mobile.automation.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

	/**
	 * 
	 * @param formatStr
	 *            :HH:mm:ss;yyyy-MM-dd HH:mm:ss 等
	 * @return
	 */
	public static String getCurrentDate(String formatStr) {

		Date date = new Date();
		DateFormat format = new SimpleDateFormat(formatStr);
		String time = format.format(date);

		return time;
	}

}
